Skip to content

SAN-4781 Payments Integration#1674

Merged
Myztiq merged 6 commits intomasterfrom
SAN-4781-payments-integration
Aug 19, 2016
Merged

SAN-4781 Payments Integration#1674
Myztiq merged 6 commits intomasterfrom
SAN-4781-payments-integration

Conversation

@Myztiq
Copy link
Copy Markdown
Contributor

@Myztiq Myztiq commented Aug 18, 2016

Fixing issue where we were using properties on the github org instead of big poppa org. Created service to abstract this away.

@runnabot
Copy link
Copy Markdown

runnabot commented Aug 18, 2016

The latest push to PR-1674 has stopped. Check out the logs SAN-4781-payments-integration-angular-unit

@runnabot
Copy link
Copy Markdown

The latest push to PR-1674 is running on SAN-4781-payments-integration-runnable-angular

$scope.helpCards = helpCards;
$scope.server = {};
$scope.activeAccount = $rootScope.dataApp.data.activeAccount;
$scope.activeAccount = currentOrg.github; // I'm unsure if this is used.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You mean our old practice of using stuff attached to the scope from 5 or 6 levels up is not great for determining how and when a variable is used... impossible!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something like that.

@thejsj
Copy link
Copy Markdown
Member

thejsj commented Aug 18, 2016

LGTM! Awesome PR that cleans up a bunch of our stuff.

@thejsj
Copy link
Copy Markdown
Member

thejsj commented Aug 18, 2016

Would it be a lot of work to add a loading screen here?

screen shot 2016-08-18 at 3 52 11 pm

@thejsj
Copy link
Copy Markdown
Member

thejsj commented Aug 18, 2016

Also, seems like I can add modals on top of modals.

screen shot 2016-08-18 at 3 53 07 pm

@thejsj
Copy link
Copy Markdown
Member

thejsj commented Aug 18, 2016

Also, can't dismiss this modal. Is that on purpose?

http://g.recordit.co/vQzmiexgxq.gif

@Myztiq
Copy link
Copy Markdown
Contributor Author

Myztiq commented Aug 18, 2016

That's a bug! Good catch.

@Myztiq
Copy link
Copy Markdown
Contributor Author

Myztiq commented Aug 18, 2016

Turns out almost all of the above issues are related to @thejsj having a localStorage var for hasDismissedTrialNotification set to true, when it's now an object. Since no user has seen this yet it'll get defaulted to an object so it's a non-issue at the moment.

There is one issue with a digest cycle required to render the billing page, this is something that I have not yet noticed until now.

Myztiq added 2 commits August 18, 2016 16:13
# Conflicts:
#	client/directives/modals/settingsModal/forms/billingForm/changePaymentForm/changePaymentForm.jade
#	client/services/serviceFetch.js
#	test/unit/controllers/controllerApp.unit.js
!activeAccount.attrs.hasPaymentMethod && !keypather.get($localStorage, 'hasDismissedTrialNotification.' + activeAccount.attrs.id);
currentOrg.poppa.isInTrial() &&
currentOrg.poppa.trialDaysRemaining() <= 3 &&
!currentOrg.poppa.attrs.hasPaymentMethod && !keypather.get($localStorage, 'hasDismissedTrialNotification.' + currentOrg.github.attrs.id);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

currentOrg.github.attrs.id should be able to come from poppa

(currentOrg.poppa.attrs.githubId)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yea, but I have the github object anyways, and if I'm looking for a github ID what better place than from the actual github object we have.

@Nathan219
Copy link
Copy Markdown
Member

lgtm

@Myztiq Myztiq merged commit 2ae0f47 into master Aug 19, 2016
@Myztiq Myztiq deleted the SAN-4781-payments-integration branch August 19, 2016 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants